<?php

use think\migration\Seeder;

class BasicStationData extends Seeder
{
    public function run()
    {
        $table = $this->table('basic_station');
        $rows  = [
            [
                'station_id'    => 0,
                'name'          => '全市',
                'short_name'    => 'CZ',
                'region_id'     => '53',
                'control_point' => '1',
            ],
            //5个站点
            [
                'station_id'    => 1,
                'name'          => '长治八中',
                'short_name'    => 'CZBZ',
                'region_id'     => '53',
                'control_point' => '1',
            ],
            [
                'station_id'    => 2,
                'name'          => '德盛苑',
                'short_name'    => 'DSY',
                'region_id'     => '53',
                'control_point' => '1',
            ],
            [
                'station_id'    => 3,
                'name'          => '监测站',
                'short_name'    => 'JCZ',
                'region_id'     => '53',
                'control_point' => '1',
            ],
            [
                'station_id'    => 4,
                'name'          => '清华站',
                'short_name'    => 'QHZ',
                'region_id'     => '53',
                'control_point' => '1',
            ],
            [
                'station_id'    => 5,
                'name'          => '审计局',
                'short_name'    => 'SJJ',
                'region_id'     => '53',
                'control_point' => '1',
            ]
        ];
        $table->insert($rows)->save();
    }
}